package org.zhb.sql.query.core.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class FileConstant {
	/** ~~~ 上传或下载的图片在ftp服务器上的保存路径的固定部分 */
	public final static String UPLOAD_FILE_PATH = "D:/apache-tomcat-7.0.47/webapps/";
	/** 生成图片的存放目录 **/
	private static final String DEFAULT_SUB_FOLDER_FORMAT_AUTO = "yyyy/MM/dd/";

	public static String getFilePath() {
		DateFormat df = new SimpleDateFormat(DEFAULT_SUB_FOLDER_FORMAT_AUTO);
		String imgPath = df.format(new Date());
		return UPLOAD_FILE_PATH + "/" + imgPath;
	}
}
